<template>
	<view class="body">
		<view class="title-box" @click="back()">
			<!-- <view class="title">荷式拍卖列表</view> -->
			<text class="iconfont icon-left"></text>
		</view>
		<view class="item" v-for="(item,index) in list">
			<view class="card" @click="pageto(item)">
				<view style="display: flex;">
					<view class="image">
						<image :src="globals+item.icon" style="width: 100%;height: 100%;border-radius: 100%;" mode="">
						</image>
					</view>
					<view class="info">
						<view class="name">{{item.username}}</view>
						<view class="email">{{item.email}}</view>
					</view>
				</view>
				<view class="follow" @click="pageto(item)">
					审核
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import apis from '@/api/index.js'
	import G from '@/config/global.js'
	import {
		requestApi,
		uphttp
	} from '@/utils/request.js'
	// 导入公共组件方法
	import common from '@/common/js/common.js';
	export default {
		data() {
			return {
				list: [],
				globals: "",
				user: {}
			}
		},
		onLoad() {
			this.getList();
		},
		methods: {
			getList() {
				requestApi(apis.user.approval,this.user,'get').then(res => {
					this.list = res.data;
				})
			},
			pageto(item) {
				uni.navigateTo({
					url: "/pages/center/approlDetail?id="+item.userId
				})
			},
			back(){
				uni.navigateBack({delta:1})
			}
		}
	}
</script>

<style>
	.body {
		padding: 0 32rpx;
		min-height: 100vh;
		background-image: url('../../static/bgc.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
	}

	.item {
		padding-top: 20rpx;
	}

	.card {
		background-color: rgba(255, 255, 255, 0.7);
		display: flex;
		justify-content: space-between;
		align-items: center;
		box-sizing: border-box;
		box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 3px 1px;
		border-radius: 32rpx;
		padding: 32rpx;
	}

	.image {
		width: 64rpx;
		height: 64rpx;
		margin-left: 40rpx;
	}

	.follow {
		padding: 5px;
		border-radius: 20rpx;
		background-color: #aaaa7f;

	}

	.name {
		color: #000;
		font-size: 28rpx;
	}

	.email {
		color: #333;
		font-size: 24rpx;
	}

	.info {
		margin-left: 40rpx;
	}
</style>